package com.ruoyi.project.loan.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 申请材料对象 application_document
 *
 * @author ruoyi
 * @date 2025-11-11
 */
public class ApplicationDocument extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long docId;

    /**
     * 贷款申请
     */
    @Excel(name = "贷款申请" )
    private Long applicationId;

    /**
     * 材料类型
     */
    @Excel(name = "材料类型" )
    private String docType;

    /**
     * 存储路径
     */
    @Excel(name = "存储路径" )
    private String filePath;

    /**
     * 上传时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd" )
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd" )
    private Date uploadTime;

    public Long getDocId() {
        return docId;
    }

    public void setDocId(Long docId) {
        this.docId = docId;
    }

    public Long getApplicationId() {
        return applicationId;
    }

    public void setApplicationId(Long applicationId) {
        this.applicationId = applicationId;
    }

    public String getDocType() {
        return docType;
    }

    public void setDocType(String docType) {
        this.docType = docType;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public Date getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Date uploadTime) {
        this.uploadTime = uploadTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("docId", getDocId())
                .append("applicationId", getApplicationId())
                .append("docType", getDocType())
                .append("filePath", getFilePath())
                .append("uploadTime", getUploadTime())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
